<?php

if (false === file_put_contents("tests/allowed.txt", '%^127\.0\.0\.1$|^:1/128$|^0:0:0:0:0:0:0:1$%')) {
    die("error writing tests/allowed.txt\n");
} else {
    echo "ok\n";
}

?>